package com.hs.jhzd.entity;

import javax.persistence.*;
import java.sql.Date;
import java.util.Objects;

/**
 * @author guoxc
 * @date 2019/03/04
 **/
@Entity
@Table(name = "zf_sgdpbxxb")
public class ZfSgdpbxxbEntity {
    private String zybh;
    private String jsh;
    private Date rq;
    private String xq;
    private String pbxq;
    private String fzmj;
    private String wszr;
    private String jszr;
    private String ldzr;
    private String gjly;
    private String jsbh;
    private Boolean scbj;

    @Id
    @Column(name = "ZYBH")
    public String getZybh() {
        return zybh;
    }

    public void setZybh(String zybh) {
        this.zybh = zybh;
    }

    @Basic
    @Column(name = "JSH")
    public String getJsh() {
        return jsh;
    }

    public void setJsh(String jsh) {
        this.jsh = jsh;
    }

    @Basic
    @Column(name = "RQ")
    public Date getRq() {
        return rq;
    }

    public void setRq(Date rq) {
        this.rq = rq;
    }

    @Basic
    @Column(name = "XQ")
    public String getXq() {
        return xq;
    }

    public void setXq(String xq) {
        this.xq = xq;
    }

    @Basic
    @Column(name = "PBXQ")
    public String getPbxq() {
        return pbxq;
    }

    public void setPbxq(String pbxq) {
        this.pbxq = pbxq;
    }

    @Basic
    @Column(name = "FZMJ")
    public String getFzmj() {
        return fzmj;
    }

    public void setFzmj(String fzmj) {
        this.fzmj = fzmj;
    }

    @Basic
    @Column(name = "WSZR")
    public String getWszr() {
        return wszr;
    }

    public void setWszr(String wszr) {
        this.wszr = wszr;
    }

    @Basic
    @Column(name = "JSZR")
    public String getJszr() {
        return jszr;
    }

    public void setJszr(String jszr) {
        this.jszr = jszr;
    }

    @Basic
    @Column(name = "LDZR")
    public String getLdzr() {
        return ldzr;
    }

    public void setLdzr(String ldzr) {
        this.ldzr = ldzr;
    }

    @Basic
    @Column(name = "GJLY")
    public String getGjly() {
        return gjly;
    }

    public void setGjly(String gjly) {
        this.gjly = gjly;
    }

    @Basic
    @Column(name = "JSBH")
    public String getJsbh() {
        return jsbh;
    }

    public void setJsbh(String jsbh) {
        this.jsbh = jsbh;
    }

    @Basic
    @Column(name = "SCBJ")
    public Boolean getScbj() {
        return scbj;
    }

    public void setScbj(Boolean scbj) {
        this.scbj = scbj;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ZfSgdpbxxbEntity that = (ZfSgdpbxxbEntity) o;
        return Objects.equals(zybh, that.zybh) &&
                Objects.equals(jsh, that.jsh) &&
                Objects.equals(rq, that.rq) &&
                Objects.equals(xq, that.xq) &&
                Objects.equals(pbxq, that.pbxq) &&
                Objects.equals(fzmj, that.fzmj) &&
                Objects.equals(wszr, that.wszr) &&
                Objects.equals(jszr, that.jszr) &&
                Objects.equals(ldzr, that.ldzr) &&
                Objects.equals(gjly, that.gjly) &&
                Objects.equals(jsbh, that.jsbh) &&
                Objects.equals(scbj, that.scbj);
    }

    @Override
    public int hashCode() {
        return Objects.hash(zybh, jsh, rq, xq, pbxq, fzmj, scbj);
    }
}
